package com.yisu.expressway.manager.core.mapper;

import com.yisu.expressway.ewf.entity.GoodsSpecification;
import com.yisu.expressway.manager.domain.request.GoodsSpecificationRequest;

import java.util.List;

public interface GoodsSpecificationMapper {
    int deleteByPrimaryKey(Long specificationNo);

    int resetInfo();

    int insert(GoodsSpecification record);

    GoodsSpecification selectByPrimaryKey(Long specificationNo);

    int updateByPrimaryKey(GoodsSpecification record);

    List<GoodsSpecification> getGoodsSpecificationListByLevel(GoodsSpecificationRequest goodsSpecificationRequest);

    List<GoodsSpecification> getGoodsSpecificationListByCategoryCodeAndGoodsNo(GoodsSpecificationRequest goodsSpecificationRequest);

    boolean resetGoodsSpecification(GoodsSpecificationRequest goodsSpecificationRequest);

    /**
     * 纠正错误数据使用，需要删除的方法
     * @return
     */
    List<GoodsSpecification> tepmGetList();


    /**
     * 纠正错误使用，需要删除的方法
     * @param goodsSpecification
     * @return
     */
    boolean tempUpdateSpecificationName(GoodsSpecification goodsSpecification);

}